import * as types from "../types";
const defaultState = {
  token: "",
};

export const reducers = (state = defaultState, { type, payload }) => {
  switch (type) {
    case types.SET_TOKEN:
      return { ...state, token: payload };

    default:
      return state;
  }
};
